package org.bigdata.framework.core.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author dal.anhuifeng
 * @since 2018-02-01
 */
@TableName("sharding_repository_data_source")
public class ShardingRepositoryDataSource implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 类-英文名称
	 */
	@TableField(value="classes_en")
	private String classesEn;

	/**
	 * 关联分库分表-数据源表
	 */
	@TableField(value="sharding_data_source_id")
	private Integer shardingDataSourceId;

	/**
	 * 是否开启分表（0-不开启 1-开启） 
	 */
	@TableField(value="open_sharding")
	private Integer openSharding;

	/**
	 * 分表记录数阈值
	 */
	@TableField(value="sharding_threshold")
	private Integer shardingThreshold;

	/**
	 * 分表个数
	 */
	@TableField(value="sharding_table_count")
	private Integer shardingTableCount;

	/**
	 * 状态（0-未构建 1-构建） 构建后不能修改阈值和分表个数
	 */
	private Integer status;



	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getClassesEn() {
		return classesEn;
	}

	public void setClassesEn(String classesEn) {
		this.classesEn = classesEn;
	}

	public Integer getShardingDataSourceId() {
		return shardingDataSourceId;
	}

	public void setShardingDataSourceId(Integer shardingDataSourceId) {
		this.shardingDataSourceId = shardingDataSourceId;
	}

	public Integer getOpenSharding() {
		return openSharding;
	}

	public void setOpenSharding(Integer openSharding) {
		this.openSharding = openSharding;
	}

	public Integer getShardingThreshold() {
		return shardingThreshold;
	}

	public void setShardingThreshold(Integer shardingThreshold) {
		this.shardingThreshold = shardingThreshold;
	}

	public Integer getShardingTableCount() {
		return shardingTableCount;
	}

	public void setShardingTableCount(Integer shardingTableCount) {
		this.shardingTableCount = shardingTableCount;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}
